package business.other.impl;

import business.other.PubReportGuaranteeInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import other.domain.PubReportGuaranteeInfo;
import other.domain.PubReportGuaranteeInfoCriteria;
import other.mapper.PubReportGuaranteeInfoMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/22.
 */
@Service(value = "guaranteeService")
public class PubReportGuaranteeInfoServiceImpl implements PubReportGuaranteeInfoService {
    @Autowired
    PubReportGuaranteeInfoMapper pubReportGuaranteeInfoMapper;

    @Override
    public List<PubReportGuaranteeInfo> getPubReportGuaranteeInfo() {
        PubReportGuaranteeInfoCriteria criteria = new PubReportGuaranteeInfoCriteria();
        criteria.createCriteria().getAllCriteria();
        return pubReportGuaranteeInfoMapper.selectByExample(criteria);
    }
}
